/**
 * 
 */
package v1c03;

import java.io.Console;
import java.sql.SQLException;

public class InputTest {
	public static void main(String[] args) throws ClassNotFoundException,
			SQLException {
		Console console = System.console();
		if (console == null) {
			System.err.println("sales: unable to obtain console");
			return;
		}

		String name = new String(console.readLine("Enter Name:"));

		String password = new String(console.readPassword("Enter password: "));
		System.out.println(name + ":" + password);
	}
}
